package top.huxy.boot.model.dto;

import lombok.Data;
import top.huxy.boot.exception.RequestParamIllegalException;
import top.huxy.boot.util.StringUtils;

/**
 * @Classname DTOReply
 * @Description DTOReply
 * @Date 2021/9/3 10:44
 * @Created by huxy
 */
@Data
public class DTOReply {
    private Integer cid;//回复哪条评论。注意，是回复评论
    private String content;

    public void test() {
        String temp;
        if ((temp = StringUtils.getEmptyParamName("cid,content", cid, content)) != null) {
            throw new RequestParamIllegalException("param ["+temp+"] is required !");
        }
    }
}
